<?php
//Khai báo các biến global
/**
 * JS Global
 */
$js_global = '';
$js_global .= '<script type="text/javascript" src="/js/jquery.min.js"></script>';

/***                                ---------                       ****/

$js_global .= '<script type="text/javascript" src="/themes/js/popup.js"></script>';
$js_global .= '<script type="text/javascript" src="/themes/js/myconlert.js"></script>';
$js_global .= '<script type="text/javascript" src="/themes/js/mytooltip.js"></script>';
$js_global .= '<script type="text/javascript" src="/themes/js/common.js"></script>';
//Facebook
//GA
$js_global .= "<script>
                  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
                  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
                
                  ga('create', 'UA-43837292-1', 'vnupdate.net');
                  ga('send', 'pageview');
                
                </script>";
/***********************************/
/**
 * CSS global
 */
$css_global = '';
//$css_global .= '<link rel="alternate" type="application/rss+xml" title="VCamp.VN RSS" href="/trang-chu.rss" />';
$css_global .= '<link rel="stylesheet" type="text/css" href="/themes/css/base.css" />';
$css_global .= '<link rel="stylesheet" type="text/css" href="/themes/css/myconlert.css" />';
$css_global .= '<link rel="stylesheet" type="text/css" href="/themes/css/style.css" />';
$css_global .= '<link rel="stylesheet" type="text/css" href="/themes/css/comments.css" />';
/**
 * Variable global
 */
$path_images_news = '/pictures/news/';
$path_images_review = '/pictures/reviews/';
$path_images_spotnews = '/pictures/slide_picture/';
$path_images_adv = '/pictures/quangcao/';
$path_images_avatar = '/pictures/avatar/';
$path_images_author = '/pictures/authors/';
$path_images_quotes = '/pictures/quotes/';
$path_images_event = '/pictures/events/';
$path_images_product = '/pictures/products/';
$path_images_page = '/themes/img/';
$path_images_config = '/pictures/configuration/';
$path_js_page = '/themes/js/';
//lấy ra categories
$db_menu = new db_query('SELECT cat_id,cat_name
                        FROM categories_multi
                        WHERE cat_type = "news" AND cat_active = 1');
$arr_cat  = $db_menu->resultArray();
unset($db_menu);
define('DOMAIN', 'http://m.vnupdate.net');
?>